home *** CD-ROM | disk | FTP | other *** search
/ Canon Creative 3 / Canon Creative 3 - Disc 2.iso / designe / DE.DIR / 00136.ls < prev    next >
Encoding:
Text File  |  1997-05-08  |  488 b   |  20 lines

  1. on stripPath moovy
  2.   if moovy contains "\" then
  3.     set moovyLen to length(moovy)
  4.     repeat with i = 1 to moovyLen
  5.       if char i of moovy = "\" then
  6.         put ":" into char i of moovy
  7.       end if
  8.     end repeat
  9.   end if
  10.   if not moovy contains ":" then
  11.     return moovy
  12.   end if
  13.   set myMoovy to moovy
  14.   repeat while myMoovy contains ":"
  15.     set colonIndex to offset(":", myMoovy)
  16.     set myMoovy to chars(myMoovy, colonIndex + 1, length(myMoovy))
  17.   end repeat
  18.   return myMoovy
  19. end
  20.